<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Demo.ViciMvc.NET</title>
</head>
<body>
<div>
<h2>Employee Manager</h2>
<hr />
<table cellspacing="0">
    <tr><th>Employee Name</th><th>Branch</th><th>Department</th><th>Salary</th><th>&nbsp;</th></tr>
    <!--{{foreach employee in employees}}-->
    <tr class="{{employee@OddEven}}">
        <td><a href="~/employee/edit/{{employee.EmployeeID}}">{{employee.Name}}</a></td>
        <td>{{employee.Department.Branch.Name}}</td><td>{{employee.Department.Name}}</td>
        <td align="right">{{employee.Salary ` #,##0.00}}</td>
        <td><!--{{if employee.Salary > 200000}}-->WOW!<!--{{else}}-->&nbsp;<!--{{endif}}--></td>
    </tr>
    <!--{{endfor}}-->
</table>
[<a href="~/employee/add">Add new employee</a>]
</div>
</body>
</html>
